home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d21
/
dvglue10.arc
/
DVSHADOW.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-08-13
|
2KB
|
66 lines
/*=======================================================*/
/* DVSHADOW.C */
/* functions dealing with shadow buffer */
/* */
/* (c) Copyright 1988 Ralf Brown All Rights Reserved */
/* May be freely copied for noncommercial use, so long */
/* as this copyright notice remains intact, and any */
/* changes are marked in the comment blocks preceding */
/* functions. */
/*=======================================================*/
#include "tvapi.h"
/*======================================================*/
/* DVshadow_start start shadowing video buffer, return */
/* info about shadow buffer */
/* Ralf Brown 6/23/88 */
/*======================================================*/
void far *DVshadow_start(int *rows,int *cols)
{
#ifdef __TURBOC__
_AX = 0x2B02 ;
_CX = 0x4445 ;
_DX = 0x5351 ;
geninterrupt(0x21) ;
*rows = _BH ;
*cols = _BL ;
return MK_FP(_DX,0) ;
#else
union REGS regs ;
regs.x.ax = 0x2B02 ;
regs.x.cx = 0x4445 ;
regs.x.dx = 0x5351 ;
int86(0x21,®,®s) ;
*rows = regs.h.bh ;
*cols = regs.h.bl ;
return MK_FP(regs.x.dx,0) ;
#endif __TURBOC__
}
/*======================================================*/
/* DVshadow_stop stop shadowing vidoe buffer */
/* Ralf Brown 6/23/88 */
/*======================================================*/
void DVshadow_stop(void)
{
#ifdef __TURBOC__
_AX = 0x2B05 ;
_CX = 0x4445 ;
_DX = 0x5351 ;
geninterrupt(0x21) ;
#else
union REGS regs ;
regs.x.ax = 0x2B05 ;
regs.x.cx = 0x4445 ;
regs.x.dx = 0x5351 ;
int86(0x21,®s,®s) ;
#endif __TURBOC__
}
/* End of DVSHADOW.C */